/*
 * @ClassName app.dart
 * @Description 根页面
 * @Author SuPeiSen
 * @Date 2020/7/13 17:40
 */

import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_su/common/global_context.dart';
import 'package:flutter_su/init/screen_util_init.dart';
import 'package:flutter_su/pages/audit/country_list.dart';
import 'package:flutter_su/pages/login_register/first_page.dart';
import 'package:flutter_su/pages/test/test.dart';
import 'package:flutter_su/pages/test/test_page.dart';

class RootApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      builder: (BuildContext context, Widget child){
        // 为了解决和输入框长按报错冲突
        return FlutterEasyLoading(
          child: child,
        );
      },
      home: _Root(),
    );
  }
}

class _Root extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ScreenUtilInit.init(context);
    return FirstPage();
//      return TestPage();
  }
}

